﻿<%@ Page Title="Account Alias" Language="C#" MasterPageFile="~/Settings/SettingsMaster.master" AutoEventWireup="true" CodeBehind="AccountAlias.aspx.cs" Inherits="TwiplerWeb.Settings.User.AccountAlias" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<h3 style="margin: 14px;">Alias Account</h3>

<div class="formBox" style="width:700px">

	<h4>Your account: <asp:Literal ID="litScreenName" runat="server" /></h4>
	<table cellpadding="0" cellspacing="2" border="0">
		<tr> 
			<td align="right" class="lbl" width="120">Token</td>
			<td width="600" style="background:#fff; color: #666; font-size:10pt;"><asp:Literal ID="litToken" runat="server" /></td>
		</tr>
		<tr>
			<td align="right" class="lbl">Secret</td>
			<td width="600" style="background:#fff; color: #666; font-size:10pt;"><asp:Literal ID="litSecret" runat="server" /></td>
		</tr>
	</table>


	<h4>Add account</h4>
	<table cellpadding="0" cellspacing="2" border="0">
		<tr>
			<td align="right" width="120" >Token</td><td><asp:TextBox CssClass="txtbox"  style="width:500px; border:1px solid #999;" ID="txtToken" runat="server" width="500" /></td>
		</tr>
		<tr>
			<td align="right" >Secret</td><td><asp:TextBox CssClass="txtbox" style="width:500px; border:1px solid #999;" ID="txtSecret" runat="server"  /></td>
		</tr>
		<tr>
			<td colspan="2" align="right" ><asp:Button ID="btnAddAccount" runat="server" Text="Add Account" OnClick="btnAddAccount_Click" CssClass="greenbutton" /> </td>
		</tr>
	</table>
</div>

<h4>Linked accounts</h4>

<asp:DataGrid ID="grdAccounts" runat="server" AutoGenerateColumns="false"  OnItemCommand="grdAccounts_ItemCommand" >
    <Columns>
        <asp:BoundColumn DataField="Id" readonly="true" visible="false" />
        <asp:BoundColumn DataField="ScreenName" HeaderText="Screen name" />
        
        <asp:TemplateColumn ItemStyle-HorizontalAlign="Right">
            <ItemTemplate>
                <asp:Button ID="Button1" CommandName="SwitchTo" Text="Switch To" ButtonType="PushButton" CssClass="greenbutton"  runat="server" />
                <asp:Button ID="Button2" CommandName="Delete" Text="Delete" ButtonType="PushButton" CssClass="redbutton"  runat="server" />
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>


<asp:Literal ID="litError" runat="server" />

</asp:Content>
